package com.party.core.dao.read.crowdfund;


import com.party.common.paging.Page;
import com.party.core.dao.read.BaseReadDao;
import com.party.core.model.crowdfund.Analyze;
import com.party.core.model.crowdfund.CrowdfundEventWithMemberPartner;
import com.party.core.model.crowdfund.EventStatistics;
import com.party.core.model.crowdfund.Project;
import com.party.core.model.notify.Event;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;


/***
 * 众筹跟进结束读取数据操作
 */
@Repository
public interface CrowfundFollowUpReadDao extends BaseReadDao<EventStatistics> {


   EventStatistics selectNumberTransfers(@Param(value = "id")String eventId);

    EventStatistics selectNotNumberTransfers(@Param(value = "id")String eventId);

    EventStatistics selectRefundNumber(@Param(value = "id")String eventId);

    EventStatistics selectNotRefundNumber(@Param(value = "id")String eventId);

    EventStatistics selectEventStatisticsByEventId(String eventId);

    List<Map<String, Object>> endList(@Param(value = "event")CrowdfundEventWithMemberPartner crowdfundEvent,@Param(value = "params") Map<String, Object> params, Page page);

    List<Event> selectEventId();

    EventStatistics selectByEventId(String id);


    List<Project> selectEvent(String id);

   List<Event> selectEventList();


}
